/* SVN Info:
 * $HeadURL: http://jkad.googlecode.com/svn/trunk/JKad/src/jkad/exceptions/PropertiesNotFoundException.java $
 * $LastChangedRevision: 24 $
 * $LastChangedBy: polaco $                             
 * $LastChangedDate: 2006-09-04 05:32:35 +0000 (Mon, 04 Sep 2006) $  
 */
package jkad.exceptions;

import java.util.List;

public class PropertiesNotFoundException extends Exception
{
    private static final long serialVersionUID = 5487432092800458937L;

    private List<String> properties;

    public PropertiesNotFoundException(List<String> properties)
    {
        super();
        this.properties = properties;

    }

    public List<String> getProperties()
    {
        return this.properties;
    }

    public String getMessage()
    {
        String message = "Properties not found: ";
        for (String property : properties)
            message += property + ", ";
        message = message.substring(0, message.length() - 2);
        return message;
    }

}
